package com.twetec.cms.adapter.pc.backend.exception;

import com.twetec.cms.common.constant.StaticHtmlExceptionEnum;
import com.twetec.cms.common.exception.PermissionExceptionEnum;

/**
 * @Author: zhaichangzheng
 * @Date: 2022/2/11 17:03 （日期和时间）
 */
public class StaticHtmlException extends RuntimeException {


    private final Integer code;

    private final String errorMessage;

    public StaticHtmlException(StaticHtmlExceptionEnum exception) {
        super(exception.getMessage());
        this.code = exception.getCode();
        this.errorMessage = exception.getMessage();
    }
}
